﻿using Server.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Server.Logic
{

	public class Pagination
	{
		public int Page;
		public int Pagesize;
	}

	public interface ILadingVoucherMgt
	{
		IEnumerable<LaddingVoucher> Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi);
		void Create(LaddingVoucher voucher);

		void Update(LaddingVoucher voucher);

		void Remove(string voucherID);
	}

	public interface IRiskVoucherMgt
	{
		IEnumerable<RiskVoucher> Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi);
		void Create(RiskVoucher voucher);

		void Update(RiskVoucher voucher);

		void Remove(string voucherID);
	}

	public interface IReceiptMgt
	{
		IEnumerable<LaddingReceipt> Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi);
		void Create(LaddingReceipt voucher);

		void Update(LaddingReceipt voucher);

		void Remove(string voucherID);
	}
	
	public interface IPaymentMgt
	{
		IEnumerable<Payment> Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi);
		void Create(Payment voucher);

		void Update(Payment voucher);

		void Remove(string voucherID);
	}

	

}
